From ac536340e5309771d05276528e1b2eaa582efd82 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 22 Jan 2012 00:33:20 +0000 Subject: [PATCH] * Another fix for SwiftFileBackend file listings * Fixed bogus array key reference in SwiftFileBackend constructor --- includes/filerepo/backend/SwiftFileBackend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/filerepo/backend/SwiftFileBackend.php b/includes/filerepo/backend/SwiftFileBackend.php index 9c9a551442..197236a553 100644 --- a/includes/filerepo/backend/SwiftFileBackend.php +++ b/includes/filerepo/backend/SwiftFileBackend.php @@ -52,7 +52,7 @@ class SwiftFileBackend extends FileBackend { ); // Optional settings $this->authTTL = isset( $config['swiftAuthTTL'] ) - ? $config['authTTL'] + ? $config['swiftAuthTTL'] : 120; // some sane number $this->swiftAnonUser = isset( $config['swiftAnonUser'] ) ? $config['swiftAnonUser'] @@ -795,7 +795,7 @@ class SwiftFileBackendFileList implements Iterator { if ( $this->dir == '' ) { // whole container $this->suffixStart = 0; } else { // dir within container - $this->suffixStart = strlen( $dir ) + 1; // size of "path/to/dir/" + $this->suffixStart = strlen( $this->dir ) + 1; // size of "path/to/dir/" } } -- 2.20.1